package com.wkky.mechanismscreenings.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wkky.mechanismscreenings.dtovo.StaffDTO;
import com.wkky.mechanismscreenings.dtovo.StaffPageQueryDTO;
import com.wkky.mechanismscreenings.entity.Staff;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wkky.mechanismscreenings.results.PageResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
* @author 10311
* @description 针对表【staff(五矿矿业从业人员名单 )】的数据库操作Service
* @createDate 2023-09-20 16:38:59
*/
public interface StaffService extends IService<Staff> {

    void importExcel(MultipartFile file);


    List<Staff> getRandStaffs(Integer limit);

    void downloadStaffs(Integer limit, HttpServletResponse response);

    /**
     * 分页查询
     * @param staffPageQueryDTO
     * @return
     */
    PageResult pageQuery(StaffPageQueryDTO staffPageQueryDTO);
    /**
     * 新增员工
     * @param staffDTO
     * @return
     */
    void save(StaffDTO staffDTO);
    /**
     * 批量删除
     * @param ids
     * @return
     */
    void delete(List<String> ids);

    /**
     * 筛选数据
     * @param staffPageQueryDTO
     * @return
     */
    PageResult screenOutQuery(StaffPageQueryDTO staffPageQueryDTO);

    /**
     * 下载前台选中的数据
     * @param selectedStaff
     */
    void downloadSelectedStaff(List<String> ids,HttpServletResponse response);
}
